package com.qiaofang.entity;

import com.qiaofang.common.model.BaseDomain;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.CreatedBy;
import org.springframework.data.annotation.LastModifiedBy;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 用户
 */
@Data
@Entity
@Table(name = "tm_opt_user")
public class User extends BaseDomain {

    @ApiModelProperty("用户Uuid")
    @Column(name = "user_uuid")
    private String userUuid;

    @ApiModelProperty("账户")
    @Column(name = "user_account")
    private String userAccount;

    @ApiModelProperty("密码")
    @Column(name = "user_pwd")
    private String userPwd;

    @ApiModelProperty("真实姓名")
    @Column(name = "real_name")
    private String realName;

    @ApiModelProperty("手机号")
    @Column(name = "mobile")
    private String mobile;

    @ApiModelProperty("邮箱")
    @Column(name = "email")
    private String email;

    @ApiModelProperty("0: 禁用, 1: 启用")
    @Column(name = "user_status")
    private String userStatus;

    @ApiModelProperty("0: 系统用户, 1: 普通用户")
    @Column(name = "user_type")
    private String userType;

    @ApiModelProperty("角色")
    @Column(name = "role_uuid")
    private String roleUuid;

    @ApiModelProperty("是否删除，0-否，1-是")
    @Column(name = "del_flag")
    private String delFlag;

    @CreatedBy
    @ApiModelProperty("创建人")
    @Column(name = "create_user")
    private String createUser;

    @LastModifiedBy
    @ApiModelProperty("修改人")
    @Column(name = "update_user")
    private String updateUser;

}
